/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.etop.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户活动信息
 * @author Lin Duxiang
 */
@Entity
@Table(name="user_activity")  
public class User_activity implements Serializable {
    private int id;
    private int u_id;//用户id
    private int act_id;//活动id

    public User_activity() {
    }

    public User_activity(int u_id, int act_id) {
        this.u_id = u_id;
        this.act_id = act_id;
    }

    public User_activity(int id, int u_id, int act_id) {
        this.id = id;
        this.u_id = u_id;
        this.act_id = act_id;
    }
    
    @Id                                 // 主键，必须要有@Id
    @GeneratedValue                     // ID的生成策略，GenerateValue代表自动增长 
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getU_id() {
        return u_id;
    }

    public void setU_id(int u_id) {
        this.u_id = u_id;
    }

    public int getAct_id() {
        return act_id;
    }

    public void setAct_id(int act_id) {
        this.act_id = act_id;
    }
    
    
}